<?php
require_once "../tools/DbTools.php";

DbTools::InitDb();
$sql="select * from accountinfo ";
$result = DbTools::select($sql);
$len = count($result);
echo "<table border=\"1\" cellspacing=\"0\" cellpadding=\"10px\">";
echo "<tr><th>ID</th><th>身份证号</th><th>手机号</th><th>真实姓名</th><th>开户时间</th></tr>";
for ($i=0;$i<$len;$i++){
    echo "<tr>";
   echo "<td>".$result[$i]["AccountId"]."</td>";
   echo "<td>".$result[$i]["AccountCode"]."</td>";
   echo "<td>".$result[$i]["AccountPhone"]."</td>";
   echo "<td>".$result[$i]["RealName"]."</td>";
   echo "<td>".$result[$i]["OpenTime"]."</td>";
    echo "</tr>";
}
echo "</table>";

DbTools::close();